/**
 * @file: User.java
 *
 * @author: 蒋振
 *
 * @date: 2016年4月8日 上午11:30:56
 *
 * @copyright: 南京凯盛
 */
package cn.com.kisen.jiangz;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * 
 *
 * @author 蒋振
 * @version 1.0 Created on 2016年4月8日 上午11:30:56
 */
public class User {

    private String name;
    
    private Integer age;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss",timezone="GMT+8")
    private Date birthday;
    
    public User( ){ }
    
    public User(String name,Integer age,Date birthday){
        this.name = name;
        this.age = age;
        this.birthday = birthday;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public Integer getAge() {
        return age;
    }
    
    public void setAge(Integer age) {
        this.age = age;
    }
    
    public Date getBirthday() {
        return birthday;
    }
    
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return String.format("I am %s, %d years old, birthed in %tF%n", name,age,birthday);
    }

}
